
#include "ExpressionTest.h"

void ExpressionTest::TestAnalyse(void ) {
	// Différents test d'expressions arithmétique possible.
	Expression exp1;
	exp1.addCodeLobo("+ a b");
	exp1.analyser();
	CPPUNIT_ASSERT(exp1.toString() == "a + b ");

	Expression exp2;
	exp2.addCodeLobo("+ 1 + 3 * 5 x");
	exp2.analyser();
	CPPUNIT_ASSERT(exp2.toString() == "1 + 3 + 5 * x ");

}

